package org.example.model;

import java.math.BigDecimal;
import java.util.Date;

public class MaterialRequest {
    private int requestId;
    private String materialName;
    private int quantity;
    private double unitPrice;
    private double totalAmount;
    private String purchaseLocation;
    private String requestReason;
    private String approvalStatus;
    private String approvalOpinion;
    private String approvalTime;

    public MaterialRequest() {
    }

    public MaterialRequest(int requestId, String materialName, int quantity,
                           double unitPrice, double totalAmount,
                           String purchaseLocation, String requestReason,
                           String approvalStatus, String approvalOpinion,
                           String approvalTime) {
        this.requestId = requestId;
        this.materialName = materialName;
        this.quantity = quantity;
        this.unitPrice = unitPrice;
        this.totalAmount = totalAmount;
        this.purchaseLocation = purchaseLocation;
        this.requestReason = requestReason;
        this.approvalStatus = approvalStatus;
        this.approvalOpinion = approvalOpinion;
        this.approvalTime = approvalTime;
    }

    // getters and setters（保持与字段类型一致）
    public int getRequestId() {
        return requestId;
    }

    public void setRequestId(int requestId) {
        this.requestId = requestId;
    }

    public String getMaterialName() {
        return materialName;
    }

    public void setMaterialName(String materialName) {
        this.materialName = materialName;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public double getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(double unitPrice) {
        this.unitPrice = unitPrice;
    }

    public double getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(double totalAmount) {
        this.totalAmount = totalAmount;
    }

    public String getPurchaseLocation() {
        return purchaseLocation;
    }

    public void setPurchaseLocation(String purchaseLocation) {
        this.purchaseLocation = purchaseLocation;
    }

    public String getRequestReason() {
        return requestReason;
    }

    public void setRequestReason(String requestReason) {
        this.requestReason = requestReason;
    }

    public String getApprovalStatus() {
        return approvalStatus;
    }

    public void setApprovalStatus(String approvalStatus) {
        this.approvalStatus = approvalStatus;
    }

    public String getApprovalOpinion() {
        return approvalOpinion;
    }

    public void setApprovalOpinion(String approvalOpinion) {
        this.approvalOpinion = approvalOpinion;
    }

    public String getApprovalTime() {
        return approvalTime;
    }

    public void setApprovalTime(String approvalTime) {
        this.approvalTime = approvalTime;
    }
}